using ASP;
using System;
using System.Web.Profile;
using System.Web.UI;
public class Shop_UserControls_ShowMemberIdentify : UserControl
{
	private string _identifyArray;
	private string _personIdentify = "0";
	private string _companyIdentify = "0";
	private string _mobileIdentify = "0";
	private string _bandShopIdentify = "0";
	private string _prePayIdentify = "0";
	private string _Identify2 = "0";
	private string _Identify3 = "0";
	private string _Identify4 = "0";
	private string _Identify5 = "0";
	protected DefaultProfile Profile
	{
		get
		{
			return (DefaultProfile)this.Context.Profile;
		}
	}
	protected global_asax ApplicationInstance
	{
		get
		{
			return (global_asax)this.Context.ApplicationInstance;
		}
	}
	public string Identify
	{
		get
		{
			return this._identifyArray;
		}
		set
		{
			this._identifyArray = value;
		}
	}
	public string PersonIdentify
	{
		get
		{
			return this._personIdentify;
		}
		set
		{
			this._personIdentify = value;
		}
	}
	public string CompanyIdentify
	{
		get
		{
			return this._companyIdentify;
		}
		set
		{
			this._companyIdentify = value;
		}
	}
	public string MobileIdentify
	{
		get
		{
			return this._mobileIdentify;
		}
		set
		{
			this._mobileIdentify = value;
		}
	}
	public string BandShopIdentify
	{
		get
		{
			return this._bandShopIdentify;
		}
		set
		{
			this._bandShopIdentify = value;
		}
	}
	public string PrePayIdentify
	{
		get
		{
			return this._prePayIdentify;
		}
		set
		{
			this._prePayIdentify = value;
		}
	}
	public string Identify2
	{
		get
		{
			return this._Identify2;
		}
		set
		{
			this._Identify2 = value;
		}
	}
	public string Identify3
	{
		get
		{
			return this._Identify3;
		}
		set
		{
			this._Identify3 = value;
		}
	}
	public string Identify4
	{
		get
		{
			return this._Identify4;
		}
		set
		{
			this._Identify4 = value;
		}
	}
	public string Identify5
	{
		get
		{
			return this._Identify5;
		}
		set
		{
			this._Identify5 = value;
		}
	}
	protected void Page_Load(object sender, EventArgs e)
	{
	}
	public void ShowUserIdentify()
	{
		string text = "";
		string[] array = new string[]
		{
			"0",
			"0",
			"0",
			"0",
			"0",
			"0",
			"0",
			"0",
			"0"
		};
		if (!string.IsNullOrEmpty(this._identifyArray) && this._identifyArray != "")
		{
			array = this._identifyArray.Split(new char[]
			{
				'|'
			});
		}
		else
		{
			if (!string.IsNullOrEmpty(this._personIdentify) && this._personIdentify != "")
			{
				array[0] = this._personIdentify;
			}
			if (!string.IsNullOrEmpty(this._companyIdentify) && this._companyIdentify != "")
			{
				array[1] = this._companyIdentify;
			}
			if (!string.IsNullOrEmpty(this._mobileIdentify) && this._mobileIdentify != "")
			{
				array[2] = this._mobileIdentify;
			}
			if (!string.IsNullOrEmpty(this._bandShopIdentify) && this._bandShopIdentify != "")
			{
				array[3] = this._bandShopIdentify;
			}
			if (!string.IsNullOrEmpty(this._prePayIdentify) && this._prePayIdentify != "")
			{
				array[4] = this._prePayIdentify;
			}
			if (!string.IsNullOrEmpty(this._Identify2) && this._Identify2 != "")
			{
				array[5] = this._Identify2;
			}
			if (!string.IsNullOrEmpty(this._Identify3) && this._Identify3 != "")
			{
				array[6] = this._Identify3;
			}
		}
		string text2 = string.Join(",", array);
		if (text2.Contains("1"))
		{
			if (array[0] == "1")
			{
				text += "<a href=\"#\"><img src=\"../Images/Identify.gif\" title=\"通过身份认证用户\"/></a>&nbsp;";
			}
			if (array[1] == "1")
			{
				text += "<a href=\"#\"><img src=\"../Images/free_icon.gif\" title=\"通过企业认证用户\"/></a>&nbsp;";
			}
			if (array[2] == "1")
			{
				text += "<a href=\"#\"><img src=\"../Images/mobile_icon.gif\" title=\"通过手机认证用户\"/></a>&nbsp;";
			}
			if (array[3] == "1")
			{
				text += "<a href=\"#\"><img src=\"../Images/shop_identify.gif\" title=\"通过品牌商城认证用户\"/></a>&nbsp;";
			}
			if (array[4] == "1")
			{
				text += "<a href=\"#\"><img src=\"../Images/prepay_icon.gif\" title=\"通过先赔后付认证用户\"/></a>&nbsp;";
			}
			if (array[5] == "1")
			{
				text += "<a href=\"#\"><img src=\"../Images/zfb_person_small.gif\" title=\"通过支付宝认证用户\"/></a>&nbsp;";
			}
		}
		else
		{
			if (array[0] == "9")
			{
				text += "<img src=\"../Images/NoIdentify.gif\" title=\"你的资料已递交请等待审核\"/>&nbsp;";
			}
			else
			{
				text += "<img src=\"../Images/NoIdentify.gif\" title=\"你还没通过身份认证\"/>&nbsp;";
			}
		}
		base.Response.Write(text);
	}
}
